package com.book.demo.demo.service;

import com.book.demo.demo.dao.BookDao;
import com.book.demo.demo.model.BookInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BookService {
    /**
     * 书籍业务逻辑层*/

    // 引入数据层对象
    @Autowired
    private BookDao bookDao;
    /**
     * 获取图书列表数据*/
    public List<BookInfo> getBookList() {
        // 调用数据层获取数据并返回
        return bookDao.mockData();
    }
}























